package com.one.group.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 维保单位信息表实体类
 */
@Data
@SuppressWarnings("all")
@Builder
@Table(value = "sp_maintenance_unit_info") // 映射数据库表名
public class MaintenanceUnitInfo implements Serializable {

    @Id // 标识主键字段
    @Column(value = "id") // 指定数据库列名
    private Long id; // 主键ID

    @Column(value = "equipment_id")
    private Long equipmentId; // 设备ID（关联 sp_equipment 表）

    @Column(value = "maintenance_unit")
    private String maintenanceUnit; // 维保单位

    @Column(value = "maintenance_unit_phone")
    private String maintenanceUnitPhone; // 维保单位电话

    @Column(value = "maintenance_unit_address")
    private String maintenanceUnitAddress; // 维保单位地址

    @Column(value = "equipment_maintainer")
    private String equipmentMaintainer; // 设备维保人

    @Column(value = "registration_date")
    private Date registrationDate; // 登记日期

    @Column(value = "remarks")
    private String remarks; // 备注

    @Column(value = "is_deleted", isLogicDelete = true)
    private Integer isDeleted; // 逻辑删除标记（0-未删除，1-删除）

    @Column(value = "create_time")
    private Date createTime; // 创建时间

    @Column(value = "update_time")
    private Date updateTime; // 更新时间
}
